package com.useeinfo.oa.modules.wuHanCommon.base.entity;

import com.useeinfo.framework.extend.entity.SuperClassEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 报警接受数据表
 */
@Entity
@Table(name = "wuhan_warning_create_accept")
public class WarningCreateAccept extends SuperClassEntity<WarningCreateAccept> {

    /**
     * 接受的数据
     */
    @Column(columnDefinition = "text")
    private String acceptContent;
    /**
     * 获取的状态  0：成功  1：失败
     */
    private Integer errCode;
    /**
     * 错误原因
     */
    @Column(columnDefinition = "text")
    private String errMsg;
    /**
     * 获取的状态  0：报警  1：自动抄表
     */
    private Integer type;
    /**
     * 组id
     */
    private String projId;
    /**
     * token
     */
    private String token;

    public WarningCreateAccept() {
    }

    public WarningCreateAccept(String acceptContent, Integer errCode, String errMsg, String projId, String token, Integer type) {
        this.acceptContent = acceptContent;
        this.errCode = errCode;
        this.errMsg = errMsg;
        this.projId = projId;
        this.token = token;
        this.type = type;
    }

    public String getAcceptContent() {
        return acceptContent;
    }

    public void setAcceptContent(String acceptContent) {
        this.acceptContent = acceptContent;
    }

    public Integer getErrCode() {
        return errCode;
    }

    public void setErrCode(Integer errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public String getProjId() {
        return projId;
    }

    public void setProjId(String projId) {
        this.projId = projId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
